package patopay

class PatopayTagLib {

  static returnObjectForTags = ['content']

  def chart = { attrs, body ->
	   out << 
    ("http://chart.apis.google.com/chart?chs=") <<
    (attrs.chs) <<
    "&chd="  << 
    (attrs.chd) <<
    "&cht=" << 
    (attrs.cht) << 
    "&chl= " << (attrs.chl)
  }

  def chartBarres = { attrs, body ->
	   out <<
    "http://chart.apis.google.com/chart?chs=240x100" <<
    "&chd="  <<
    (attrs.chd) <<
    "&cht=bhs"  <<
    "&chco=000000|00ff00" <<
    "&chdl=" << (attrs.chdl)
  }

  

}
